<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                template="./templates/base_template.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:define name="complementTitreEtH1">Menu du TP3</ui:define>

    <ui:define name="content">
        Effectuez votre transfert de compte:
        
        <f:view>
            <h:form>
                <h1><h:outputText value="Transfert"/></h1>
                <h:panelGrid columns="2">
                    <h:outputLabel value="Id:" for="id" />
                    <h:inputText id="id" value="#{gestionnaireDeComptes.details.id}" title="Id" />
                    
                    
                    <h:outputLabel value="Id à crediter:" for="idCredit" />
                    <h:inputText id="idCredit" value="#{gestionnaireDeComptes.idCpteCrediter}" title="IdCredit" />
                    <h:outputLabel value="Solde:" for="solde" />
                    <h:inputText id="solde" value="#{gestionnaireDeComptes.montant}" title="Solde" />
                    
                    <h:commandButton value="Transfert" action="#{gestionnaireDeComptes.effectuerTransfert}"></h:commandButton>
 
                </h:panelGrid>
            </h:form>
        </f:view>        
    </ui:define>

</ui:composition>

